<%@page import="databank.DataBank"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>delete_result.jsp</title>
<script>
	function getId(id){return document.getElementById(id)}
	function init(){
		getId("btnlist").onclick = function(){
			location.href='MyHome.jsp?inc_content=./databank/list.jsp';
		}
	}
</script>
</head>
<body>
<jsp:useBean id="bankVo" class="databank.DataBankVo"/>
<jsp:setProperty property="*" name="bankVo"/>
<%
DataBank bank = new DataBank();
bank.setVo(bankVo);
%>

<div id='databank_body'>
	<h1>삭제 결과</h1>
	<%
		if(bank.delete()){
			out.print("삭제가 정상적으로 이루어졌습니다.");
		}else{
			out.print("삭제작업중 오류 발생...");
		}
	%>
	<input type='button' value='목록' id='btnlist'>
</div>


<script>init();</script>
</body>
</html>